import request from '@/utils/request'

// 查询打印机认证情况列表
export function listPrintercert(query) {
  return request({
    url: '/nongit/printercert/list',
    method: 'get',
    params: query
  })
}

// 查询打印机认证情况详细
export function getPrintercert(printerId) {
  return request({
    url: '/nongit/printercert/' + printerId,
    method: 'get'
  })
}

// 新增打印机认证情况
export function addPrintercert(data) {
  return request({
    url: '/nongit/printercert',
    method: 'post',
    data: data
  })
}

// 修改打印机认证情况
export function updatePrintercert(data) {
  return request({
    url: '/nongit/printercert',
    method: 'put',
    data: data
  })
}

// 删除打印机认证情况
export function delPrintercert(printerId) {
  return request({
    url: '/nongit/printercert/' + printerId,
    method: 'delete'
  })
}
